<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
  <head>
    <title>Sistema de Gestão Escolar - SGE</title>
    <%= stylesheet_link_tag :all %>
    <%= javascript_include_tag :all %>
    <%= csrf_meta_tag %>
  </head>
  <body>
    <div>
      <h1>Sistema de Gestão Escolar - SGE</h1>
    </div>
    <span width="100%" align="center" id="menu">
      <dl class="dropdown">
        <dt id="one-ddheader" onmouseover="ddMenu('one',1)" onmouseout="ddMenu('one',-1)">Administração</dt>
        <dd id="one-ddcontent" onmouseover="cancelHide('one')" onmouseout="ddMenu('one',-1)">
          <ul>
            <li>
              <ul>
                <li><%= link_to "Alunos", alunos_path, :class => 'underline' %></li>
                <li><%= link_to "Cursos", cursos_path, :class => 'underline' %></li>
                <li><%= link_to "Disciplinas", disciplinas_path, :class => 'underline' %></li>                
                <% if session[:usuario]['admin'] == 1 %>
                  <li><%= link_to "Turmas", turmas_path, :class => 'underline' %></li>
                  <li><%= link_to "Usuários", usuarios_path %></li>
                <% else %>
                  <li><%= link_to "Turmas", turmas_path %></li>
                <% end %>
              </ul>
            </li>            
          </ul
        </dd>
      </dl>
      <dl class="dropdown">
        <dt id="relatorio-ddheader" onmouseover="ddMenu('relatorio',1)" onmouseout="ddMenu('relatorio',-1)">Relatorios</dt>
        <dd id="relatorio-ddcontent" onmouseover="cancelHide('relatorio')" onmouseout="ddMenu('relatorio',-1)">
          <ul>
            <li>
              <ul>
                <li><%= link_to "Lista de Usuários", user_report_path, :class => 'underline' %></li>
                <li><%= link_to "Alunos Matriculados", pesquisa_matricula_path %></li>
              </ul>
            </li>
          </ul>
      </dl>
      <dl class="dropdown">
        <dt id="two-ddheader" onmouseover="ddMenu('two',1)" onmouseout="ddMenu('two',-1)">Ajuda</dt>
        <dd id="two-ddcontent" onmouseover="cancelHide('two')" onmouseout="ddMenu('two',-1)">
          <ul>
            <li>
              <ul>
                <li><%= link_to "Sobre...", sobre_path %></li>
              </ul>
            </li>
          </ul>
      </dl>
      <dl class="dropdown">
        <dt id="logout-ddheader" onmouseover="ddMenu('logout',1)" onmouseout="ddMenu('logout',-1)"><%= session[:usuario]['nome'] %></dt>
        <dd id="logout-ddcontent" onmouseover="cancelHide('logout')" onmouseout="ddMenu('logout',-1)">
          <ul>
            <li>
              <ul>
                <li><%= link_to "Alterar senha", mudar_senha_path, :class => 'underline' %></li>
                <li><%= link_to "Logout", logout_path %></li>
              </ul>
            </li>
          </ul>
      </dl>
    </span>
    </ br>
    <span width="100%" align="center" id="corpo">
      <br></br><br></br><br></br>
      <%= yield %>
    </span>
  </body>
</html>
